package com.clarence.dada.modular.system.user.entity.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * 系统用户结果
 *
 * @author GD
 * @since 2020/4/2 9:19
 */
@Data
@Schema(title = "系统用户响应实例")
public class SysUserResp {

    /**
     * 主键
     */
    @Schema(title = "主键", example = "1")
    private Long userId;

    /**
     * 账号
     */
    @Schema(title = "账号", example = "admin")
    private String account;

    /**
     * 昵称
     */
    @Schema(title = "昵称", example = "梦开始得地方")
    private String nickName;

    /**
     * 姓名
     */
    @Schema(title = "姓名", example = "张三")
    private String realName;

    /**
     * 头像
     */
    @Schema(title = "头像", example = "abc.png")
    private Long avatar;

    /**
     * 生日
     */
    @Schema(title = "生日", example = "2018-01-01")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;

    /**
     * 性别（M-男，F-女）
     */
    @Schema(title = "性别（M-男，F-女）", example = "M")
    private String sex;

    /**
     * 邮箱
     */
    @Schema(title = "邮箱", example = "88888888@qq.com")
    private String email;

    /**
     * 手机
     */
    @Schema(title = "手机", example = "18888888888")
    private String phone;

    /**
     * 电话
     */
    @Schema(title = "电话", example = "88888888")
    private String tel;

    /**
     * 状态
     */
    @Schema(title = "状态", example = "1")
    private Integer statusFlag;

    /**
     * 用户角色id
     */
    @Schema(title = "用户角色id", example = "1,2,3")
    private List<Long> grantRoleIdList;

}
